Fix buffer overruns in 'gtk-builder-tool simplify'
authorMichael Catanzaro <mcatanzaro@gnome.org>
Mon, 21 Dec 2020 21:35:51 +0000 (15:35 -0600)
committerMichael Catanzaro <mcatanzaro@gnome.org>
Mon, 21 Dec 2020 21:39:34 +0000 (15:39 -0600)
commitab1b117d91c77c6bffd93f324c0c81cf63113b27
tree0f2b23683113cae777ed3abf95f72a2e54213772
parent466484176facdafd6354dd3ddc017b1248a70480
Fix buffer overruns in 'gtk-builder-tool simplify'

Oops, here we allocate only one byte for each pointer we want to store.
We need to multiply by the size of a pointer.
gtk/tools/gtk-builder-tool-simplify.c